package com.mes.schedule.manager;

import java.io.Serializable;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.mes.common.exception.bo.BaseBusinessException;
import com.mes.common.exception.db.BaseDBException;
import com.mes.common.manager.BasicManager;
import com.mes.common.model.ObjectOperation;
import com.mes.common.spring.SpringUtils;
import com.mes.schedule.dao.ScheduleEquipmentDao;
import com.mes.schedule.manager.iface.IScheduleEquipmentManager;

/**
 * 最终应该由java消息系统来决替代，而不是数据库
 * 
 * @author AutoGenerateJavaTool 1.0
 * 
 */
@Component("scheduleEquipmentManager")
@Transactional
public class ScheduleEquipmentManager extends BasicManager implements IScheduleEquipmentManager{
	 
	private ScheduleEquipmentDao scheduleEquipmentDao;

	public ScheduleEquipmentDao getScheduleEquipmentDao() {
		return scheduleEquipmentDao;
	}

	public void setScheduleEquipmentDao(ScheduleEquipmentDao scheduleEquipmentDao) {
		this.scheduleEquipmentDao = scheduleEquipmentDao;
		super.setBasicDao(scheduleEquipmentDao);
	}
//	   public Boolean updateScheduleEquipment(Serializable object) throws BaseBusinessException {
//		   ScheduleEquipment so = (ScheduleEquipment) object;
//		   try{
//	        super.update(so); 
//	        } catch (BaseDBException e) {
//	            // TODO Auto-generated catch block
//	            e.printStackTrace();
//	        } catch (RuntimeException e) {
//	            // TODO Auto-generated catch block
//	            e.printStackTrace();
//	        }
//	        return true;
//	    }
}
